"""API FAQ 相关功能实现模块"""
from fastapi import HTTPException

from service.faq_service import FaqService


class FaqServiceAPI(FaqService):
    """
用于API请求的FaqService实现类。
-此类通过覆盖与API相关的特定异常处理来实现。
    """

    def raise_exception(self, status_code: int = 400, detail: str = None, url: str = None):
        raise HTTPException(status_code=status_code, detail=detail)
